package com.heima.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.article.dtos.Articleload;
import com.heima.model.article.pojos.ApArticle;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface ArticleMapper extends BaseMapper<ApArticle> {

    List<ApArticle> ApArticleList(@Param("type") Short type, @Param("articleload")Articleload articleload);

    List<ApArticle> findArticleListByLast5days(@Param("dayParam")Date dayParam);
}
